package com.ssy.lingxi.contract.controller;

import com.ssy.lingxi.common.model.vo.PageVO;
import com.ssy.lingxi.common.response.PageData;
import com.ssy.lingxi.common.response.Wrapper;
import com.ssy.lingxi.contract.entity.ContractParam;
import com.ssy.lingxi.contract.service.IContractParamService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;


/**
 * @menu 合同能力 - 合同模板管理 - 合同模板参数查询
 * @author yzc
 * @version 2.0.0
 * @date 2020/8/20
 */
@RestController
@RequestMapping("/contract/contractParam")
public class ContractParamController {

    @Resource
    private IContractParamService companyService;

    /**
     * 电子合同参数配置分页列表
     * @param request 接口参数
     * @return 返回结果
     */
    @GetMapping("/page")
    public Wrapper<PageData<ContractParam>> pageContractParam(PageVO request) {
        return companyService.pageContractParam(request);
    }
}